local extension_card = Package:new("wdtx_cards", Package.CardPack)
extension_card.extensionName = "wdtx"
extension_card.game_modes_whitelist = {"wdtx_mode"}

extension_card:loadSkillSkelsByPath("./packages/wdtx/pkg/WDTX_cards/skills")
Fk:loadTranslationTable {
  ["wdtx_cards"] = "问鼎天下卡组",
}

--护甲
local defShield = fk.CreateCard{
  name = "defshield",
  type = Card.TypeBasic,
  skill = "defshield_skill",
}
extension_card:addCardSpec("defshield", Card.Diamond, 1)
Fk:loadTranslationTable {
  ["defshield"] = "护甲",
  [":defshield"] = "基本牌牌<br /><b>时机</b>：出牌阶段<br /><b>目标</b>：自己<br /><b>效果</b>：获得+1护甲",
  ["#defshield_skill"] = "获得1护甲",
}

--此模式新的杀
local wdtx_Slash = fk.CreateCard{
  name = "wdtx__slash",
  skill = "wdtx__slash_skill",
  type = Card.TypeBasic,
  is_damage_card = true,
}
extension_card:addCardSpec("wdtx__slash",Card.Spade,8)
Fk:loadTranslationTable{
  ["wdtx__slash"] = "杀",
  ["wdtx__slash_skill"] = "对目标角色造成1点伤害（限定问鼎天下模式有效）",
	[":wdtx__slash"] = "基本牌<br /><b>时机</b>：出牌阶段<br /><b>目标</b>：攻击范围内的一名角色<br /><b>效果</b>：对目标角色造成1点伤害（升级限定问鼎天下模式有效）"..
  "<br /><font color='#90EE90'>等级1：此卡伤害效果额外增加X（X为等级数）</font>"..
  "<br /><font color='#90EE90'>等级2：继承等级1</font>"..
  "<br /><font color='#90EE90'>等级3：继承等级1</font>",
  ["#wdtx__slash_skill"] = "选择攻击范围内的一名角色，对其造成1点伤害",
  ["#wdtx__slash_skill_multi"] = "选择攻击范围内的至多%arg名角色，对这些角色各造成1点伤害",
}
--新的雷杀
local wdtx_thunderSlash = fk.CreateCard{
  name = "wdtx_thunder__slash",
  skill ="wdtx_thunder__slash_skill",
  type = Card.TypeBasic,
  is_damage_card = true,
}
extension_card:addCardSpec("wdtx_thunder__slash",Card.Spade,8)
Fk:loadTranslationTable{
  ["wdtx_thunder__slash"] = "雷杀",
  ["wdtx_thunder__slash_skill"] = "对目标角色造成1点雷属性伤害（限定问鼎天下模式有效）",
	[":wdtx_thunder__slash"] = "基本牌<br /><b>时机</b>：出牌阶段<br /><b>目标</b>：攻击范围内的一名角色<br /><b>效果</b>：对目标角色造成1点雷属性伤害（升级限定问鼎天下模式有效）"..
  "<br /><font color='#90EE90'>等级1：此卡伤害效果额外增加X（X为等级数）</font>"..
  "<br /><font color='#90EE90'>等级2：继承等级1</font>"..
  "<br /><font color='#90EE90'>等级3：继承等级1</font>",
  ["#wdtx_thunder__slash_skill"] = "选择攻击范围内的一名角色，对其造成1点雷属性伤害",
  ["#wdtx_thunder__slash_skill_multi"] = "选择攻击范围内的至多%arg名角色，对这些角色各造成1点雷属性伤害",
}
--新的火杀
local wdtx_fireSlash = fk.CreateCard{
  name = "wdtx_fire__slash",
  skill = "wdtx_fire__slash_skill",
  type = Card.TypeBasic,
  is_damage_card = true,
}
extension_card:addCardSpec("wdtx_fire__slash", Card.Spade, 8)
Fk:loadTranslationTable{
  ["wdtx_fire__slash"] = "火杀",
  ["wdtx_fire__slash_skill"] = "对目标角色造成1点火属性伤害（限定问鼎天下模式有效）",
	[":wdtx_fire__slash"] = "基本牌<br /><b>时机</b>：出牌阶段<br /><b>目标</b>：攻击范围内的一名角色<br /><b>效果</b>：对目标角色造成1点火属性伤害（升级限定问鼎天下模式有效）"..
  "<br /><font color='#90EE90'>等级1：此卡伤害效果额外增加X（X为等级数）</font>"..
  "<br /><font color='#90EE90'>等级2：继承等级1</font>"..
  "<br /><font color='#90EE90'>等级3：继承等级1</font>",
  ["#wdtx_fire__slash_skill"] = "选择攻击范围内的一名角色，对其造成1点火属性伤害",
  ["#wdtx_fire__slash_skill_multi"] = "选择攻击范围内的至多%arg名角色，对这些角色各造成1点火属性伤害",
}

local wdtx__jink = fk.CreateCard {
  name = "wdtx__jink",
  type = Card.TypeBasic,
  skill = "wdtx__jink_skill",
  is_passive = true,
}
extension_card:addCardSpec("wdtx__jink", Card.Heart, 2)
Fk:loadTranslationTable{
  ["wdtx__jink"] = "闪",
  ["@slash_back"] = "反杀",
  ["wdtx__jink_skill"] = "抵消【杀】的效果",
  [":wdtx__jink"] = "基本牌<br /><b>时机</b>：【杀】对你生效时<br /><b>目标</b>：此【杀】<br /><b>效果</b>：抵消此【杀】的效果。（升级限定问鼎天下模式有效）"..
  "<br /><font color='#90EE90'>等级1：此卡使用效果结算后视为对响应此卡的目标使用【杀】</font>"
}

local wdtx__peach = fk.CreateCard {
  name = "wdtx__peach",
  type = Card.TypeBasic,
  skill = "wdtx__peach_skill",
}
extension_card:addCardSpec("wdtx__peach", Card.Heart, 3)
Fk:loadTranslationTable{
  ["wdtx__peach"] = "桃",
  ["@up_recover"] = "回复+",
  ["#wdtx__peach_skill"] = "已受伤的你/处于濒死状态的角色<br /><b>效果</b>：目标角色回复1点体力",
  ["wdtx__peach_skill"] = "你回复1点体力",
  [":wdtx__peach"] = "基本牌<br /><b>时机</b>：出牌阶段/一名角色处于濒死状态时<br /><b>目标</b>：已受伤的你/处于濒死状态的角色<br /><b>效果</b>：目标角色回复1点体力。（升级限定问鼎天下模式有效）"..
  "<br /><font color='#90EE90'>等级1：此卡效果额外恢复X（X为等级数）</font>"
}

local wdtx__dismantlement = fk.CreateCard{
  name = "wdtx__dismantlement",
  type = Card.TypeTrick,
  skill = "wdtx__dismantlement_skill",
}

extension_card:addCardSpec("wdtx__dismantlement", Card.Spade, 3)

Fk:loadTranslationTable{
  ["wdtx__dismantlement"] = "过河拆桥",
  ["@up_dismant"] = "拆数+",
  ["#wdtx__dismantlement_skill"] = "选择一名区域内有牌的其他角色，你弃置其区域内的一张牌",
  ["wdtx__dismantlement_skill"] = "过河拆桥",
  [":wdtx__dismantlement"] = "锦囊牌<br /><b>时机</b>：出牌阶段<br /><b>目标</b>：一名区域内有牌的其他角色。<br /><b>效果</b>：你弃置目标角色区域内的一张牌。（升级限定问鼎天下模式有效）"..
  "<br /><font color='#90EE90'>等级1：此卡效果额外选择X张牌（X为等级数）</font>"
  -- "<br /><font color='#90EE90'>等级2：继承等级1</font>"
}

local wdtx__snatch = fk.CreateCard{
  name = "wdtx__snatch",
  type = Card.TypeTrick,
  skill = "wdtx__snatch_skill",
}

extension_card:addCardSpec("wdtx__snatch", Card.Spade, 3)

Fk:loadTranslationTable{
  ["wdtx__snatch"] = "顺手牵羊",
  ["@up_snatch"] = "顺数+",
  ["#wdtx__snatch_skill"] = "选择距离1的区域内有牌的角色，你获得其区域内的一张牌",
  ["wdtx__snatch_skill"] = "顺手牵羊",
  [":wdtx__snatch"] = "锦囊牌<br /><b>时机</b>：出牌阶段<br /><b>目标</b>：距离1的一名区域内有牌的角色<br /><b>效果</b>：你获得目标角色区域内的一张牌。（升级限定问鼎天下模式有效）"..
  "<br /><font color='#90EE90'>等级1：此卡效果额外选择X张牌且不受距离影响（X为等级数）</font>"..
  "<br /><font color='#90EE90'>等级2：继承等级1</font>"
}


local wdtx__duel = fk.CreateCard{
  name = "wdtx__duel",
  type = Card.TypeTrick,
  is_damage_card = true,
  skill = "wdtx__duel_skill",
}
extension_card:addCardSpec("wdtx__duel", Card.Spade, 1)

Fk:loadTranslationTable{
  ["wdtx__duel"] = "决斗",
  ["@slash_reduce"] = "杀数-",
  ["slashReduceSkill"] = "怯懦",
  ["#slashReduceModSkill"] = "怯懦",
  [":slashReduceSkill"] = "锁定技，你的回合内使用杀次数-1，你的回合结束后失去此技能。",
  ["#wdtx__duel_skill"] = "选择一名其他角色，由其开始，其与你轮流打出一张【杀】，直到其与你中的一名角色未打出【杀】。<br />未打出【杀】的角色受到其与你中的另一名角色造成的1点伤害(升级后其受到此伤害后获得【怯懦】技能)",
  ["wdtx__duel_skill"] = "决斗",
  [":wdtx__duel"] = "锦囊牌<br /><b>时机</b>：出牌阶段<br /><b>目标</b>：一名其他角色<br /><b>效果</b>：由目标角色开始，其与你轮流打出一张【杀】，直到其与你中的一名角色未打出【杀】。未打出【杀】的角色受到其与你中的另一名角色造成的1点伤害。（升级限定问鼎天下模式有效）"..
  "<br /><font color='#90EE90'>等级1：使用此卡造成伤害前。目标角色获得【怯懦】技能。</font>"
}


local wdtx__ex_nihilo = fk.CreateCard{
  name = "wdtx__ex_nihilo",
  type = Card.TypeTrick,
  skill = "wdtx__ex_nihilo_skill",
}
extension_card:addCardSpec("wdtx__ex_nihilo",Card.Heart,7)

Fk:loadTranslationTable{
  ["wdtx__ex_nihilo"] = "无中生有",
  ["@up_exNihilo"] = "再摸+",
  ["#wdtx__ex_nihilo_skill"] = "你摸两张牌",
  ["wdtx__ex_nihilo_skill"] = "无中生有",
  [":wdtx__ex_nihilo"] = "锦囊牌<br /><b>时机</b>：出牌阶段<br /><b>目标</b>：你<br /><b>效果</b>：目标角色摸两张牌。（升级限定问鼎天下模式有效）"..
  "<br /><font color='#90EE90'>等级1：额外摸X张牌（X为等级数）。</font>"..
  "<br /><font color='#90EE90'>等级2：继承等级1。</font>"
}

local wdtx__nullification = fk.CreateCard{
  name = "wdtx__nullification",
  type = Card.TypeTrick,
  skill = "wdtx__nullification_skill",
  is_passive = true,
}

extension_card:addCardSpec("wdtx__nullification",Card.Heart,11)

Fk:loadTranslationTable{
  ["wdtx__nullification"] = "无懈可击",
  ["prohTrickCardSkill"] = "沉默",
  [":prohTrickCardSkill"] = "锁定技，你不能使用锦囊牌，你的回合结束时失去此技能",
  ["#trick_prohibit"] = "沉默",
  ["@@up_nullifi"] = "沉默",
  ["wdtx__nullification_skill"] = "无懈可击",
  [":wdtx__nullification"] = "锦囊牌<br /><b>时机</b>：锦囊牌对目标角色生效前，或一张【无懈可击】生效前<br /><b>目标</b>：该锦囊牌<br /><b>效果</b>：抵消该锦囊牌对该角色产生的效果，或抵消另一张【无懈可击】产生的效果。（升级限定问鼎天下模式有效）"..
  "<br /><font color='#90EE90'>等级1：使用此卡时不可被响应。且响应目标获得【沉默】技能。</font>",
  ["invokebynulli"] ="无懈暂停",
  ["#invokebynulli"] = "当前回合角色如果是人机即可弹出此中断询问防止无懈后人机秒出牌问题",
}

local wdtx__savage_assault = fk.CreateCard{
  name = "wdtx__savage_assault",
  type = Card.TypeTrick,
  is_damage_card = true,
  multiple_targets = true,
  skill = "wdtx__savage_assault_skill",
}

extension_card:addCardSpec("wdtx__savage_assault",Card.Heart,7)

Fk:loadTranslationTable{
  ["wdtx__savage_assault"] = "南蛮入侵",
  ["easyHurtSkill"] = "易伤",
  [":easyHurtSkill"] = "锁定技，每当受到共4点的牌伤害会额外受到1点伤害，拥有“易伤”标记的角色在其回合结束时其标记-1，当此标记为0时失去此技能",
  ["@up_easyhurt"] = "易伤+",
  ["#wdtx__savage_assault_skill"] = "所有其他角色需打出一张【杀】，否则受到1点伤害",
  ["wdtx__savage_assault_skill"] = "南蛮入侵",
  [":wdtx__savage_assault"] = "锦囊牌<br /><b>时机</b>：出牌阶段<br /><b>目标</b>：所有其他角色<br /><b>效果</b>：每名目标角色需打出一张【杀】，否则受到1点伤害。（升级后此牌在造成伤害结算后该角色获得【易伤】技能，升级限定问鼎天下模式有效）"..
  "<br /><font color='#90EE90'>等级1：使用此卡不可被响应，受到此牌伤害的目标使其获得【易伤】技能且获得X+1层“易伤”标记。（X为等级数）</font>"..
  "<br /><font color='#90EE90'>等级2：继承等级1</font>"
}

local wdtx__archery_attack = fk.CreateCard{
  name = "wdtx__archery_attack",
  type = Card.TypeTrick,
  is_damage_card = true,
  multiple_targets = true,
  skill = "wdtx__archery_attack_skill",
}
extension_card:addCardSpec("wdtx__archery_attack",Card.Heart,1)
Fk:loadTranslationTable{
  ["wdtx__archery_attack"] = "万箭齐发",
  ["arrowHurtSkill"] = "箭伤",
  ["#arrowhurtMaxMod"] = "箭伤",
  [":arrowHurtSkill"] = "锁定技，本回合手牌上限-X（X为“箭伤标记”），本回合结束后此标记-1，当此标记为0时失去此技能",
  ["@up_arrowhurt"] = "箭伤+",
  ["#wdtx__archery_attack_skill"] = "所有其他角色需打出一张【闪】，否则受到1点伤害",
  ["wdtx__archery_attack_skill"] = "万箭齐发",
  [":wdtx__archery_attack"] = "锦囊牌<br /><b>时机</b>：出牌阶段<br /><b>目标</b>：所有其他角色<br /><b>效果</b>：每名目标角色需打出一张【闪】，否则受到1点伤害。（升级限定问鼎天下模式有效）"..
  "<br /><font color='#90EE90'>等级1：使用此卡不可被响应，受到此牌伤害的目标使其获得【箭伤】技能且获得X+1层“箭伤”标记。（X为等级数）</font>"..
  "<br /><font color='#90EE90'>等级2：继承等级1</font>"
}


local wdtx__lightning = fk.CreateCard{
  name = "wdtx__lightning",
  type = Card.TypeTrick,
  sub_type = Card.SubtypeDelayedTrick,
  skill = "wdtx__lightning_skill",
}
extension_card:addCardSpec("wdtx__lightning",Card.Spade,1)

Fk:loadTranslationTable{
  ["wdtx__lightning"] = "闪电",
  ["#lightningMoveSkill"] = "落雷",
  ["@lightning_num"] = "闪电倒计:",
  ["@reduce_lightning_num"] = "倒计-",
  ["lightningTriSkill"] = "落雷",
  [":lightningTriSkill"] = "锁定技，每个回合开始时，拥有“闪电倒计”标记的角色其标记-1。当此标记为0时其受到3点雷电伤害，然后其失去此技能并将此卡置入弃牌堆。",
  ["#wdtx__lightning_skill"] = "将此牌置于目标角色判定区内，其获得5个“闪电倒计”标记与【落雷】技能。",
  [":wdtx__lightning"] = "延时锦囊牌<br /><b>时机</b>：出牌阶段<br /><b>目标</b>：你<br /><b>效果</b>：将此牌置于目标角色判定区内，其获得5个“闪电倒计”标记与【落雷】技能。"..
  "<br /><font color='#90EE90'>等级1：“闪电倒计”标记-1。</font>"
}


-- local indulgenceMoveSkill = fk.CreateTriggerSkill{
--   name = "#indulgenceMoveSkill",
--   anim_type = "support",
--   frequency = Skill.Compulsory,
--   events = {fk.BeforeCardsMove},
--   can_trigger = function (self, event, target, player, data) 
--     if not player:hasSkill(self) then return end
--     for _, move in ipairs(data) do
--       if move.from and move.from == player and move.toArea ~= Card.Processing then
--         for _, info in ipairs(move.moveInfo) do
--           local card = Fk:getCardById(info.cardId)
--           if card.name == "wdtx__indulgence" and info.fromArea == Card.PlayerJudge then self.cost_data = info.cardId return true end
--         end
--       end
--     end
--   end,
--   on_use = function(self, event, target, player, data)
--     local room = player.room
--     room:handleAddLoseSkills(player, "-#indulgenceMoveSkill", nil, false)
--     room:setPlayerMark(player,"@indulgence_num",0)
--   end,
-- }
-- Fk:addSkill(indulgenceMoveSkill)
local wdtx__indulgence = fk.CreateCard{
  name = "wdtx__indulgence",
  type = Card.TypeTrick,
  sub_type = Card.SubtypeDelayedTrick,
  skill = "wdtx__indulgence_skill",
}

extension_card:addCardSpec("wdtx__indulgence",Card.Spade,6)

Fk:loadTranslationTable{
  ["wdtx__indulgence"] = "乐不思蜀",
  ["@indulgence_num"] = "思蜀+",
  ["wdtx__indulgence_skill"] = "乐不思蜀",
  ["#wdtx__indulgence_skill"] = "选择一名其他角色，将此牌置于其判定区内。其判定阶段判定：<br />若结果不为<font color='#CC3131'>♥</font>，其跳过出牌阶段（升级仅限问鼎天下模式）",
  [":wdtx__indulgence"] = "延时锦囊牌<br /><b>时机</b>：出牌阶段<br /><b>目标</b>：一名其他角色<br /><b>效果</b>：将此牌置于目标角色判定区内。其判定阶段进行判定：若结果不为<font color='#CC3131'>♥</font>，其跳过出牌阶段。然后将【乐不思蜀】置入弃牌堆。（升级仅限问鼎天下模式）"..
  "<br /><font color='#90EE90'>等级1：指向目标后使其获得X层“思蜀”标记。当其因此卡判定结束时，若还有该标记，则此卡继续置入其判定区，然后此标记-1。否则将此卡置入弃牌堆。（X为等级数）。</font>"
}

local wdtx__analeptic = fk.CreateCard{
  name = "wdtx__analeptic",
  type = Card.TypeBasic,
  skill = "wdtx__analeptic_skill",
}

extension_card:addCardSpec("wdtx__analeptic",Card.Spade,3)

Fk:loadTranslationTable{
  ["wdtx__analeptic"] = "酒",
  ["@up_analep"] = "升级+",
  ["wdtxFindUpCardsSkill"] = "升级卡牌",
  ["#wdtxFindUpCardsSkill"] = "升级卡牌：选择最多%arg张手牌进行临时升级",
  ["wdtx__analeptic_skill"] = "酒",
  ["#wdtx__analeptic_skill"] = "你于此回合内使用的下一张【杀】的伤害值基数+1。<br/>（升级仅限问鼎天下模式）",
  [":wdtx__analeptic"] = "基本牌<br /><b>时机</b>：出牌阶段/你处于濒死状态时<br /><b>目标</b>：你<br /><b>效果</b>：目标角色本回合使用的下一张【杀】将要造成的伤害+1/目标角色回复1点体力。（升级仅限问鼎天下模式）"..
  "<br /><font color='#90EE90'>等级1：你可以选择1张手牌进行临时升级。（当临时升级的卡牌进入弃卡区则移除其临时升级标记）</font>"
}


local wdtx__ironChain = fk.CreateCard{
  name = "wdtx__iron_chain",
  skill = "wdtx__iron_chain_skill",
  type = Card.TypeTrick,
  special_skills = { "wdtx_recast" },
  multiple_targets = true,
}
extension_card:addCardSpec("wdtx__iron_chain",Card.Spade,11)
Fk:loadTranslationTable{
  ["wdtx__iron_chain"] = "铁索连环",
  ["wdtx_recast"] = "重铸",
  [":wdtx_recast"] = "你可以将此牌置入弃牌堆，然后摸一张牌。（升级后再摸一张牌）",
  ["#wdtx_recast"] = "将此牌置入弃牌堆，然后摸一张牌（升级后再摸一张牌）",
  ["@rechain_num"] = "连铸+",
  ["@@alone_facedown"] = "连翻",
  ["wdtx__iron_chain_skill"] = "铁索连环",
  ["#wdtx__iron_chain_skill"] = "选择一至两名角色，这些角色横置或重置",
  [":wdtx__iron_chain"] = "锦囊牌<br /><b>时机</b>：出牌阶段<br /><b>目标</b>：一至两名角色<br /><b>效果</b>：横置或重置目标角色的武将牌。（升级仅限问鼎天下模式）"..
  "<br /><font color='#90EE90'>等级1：连环选择目标+1，重铸多摸1张牌。</font>"..
  "<br /><font color='#90EE90'>等级2：连环目标为1时且其被横置。则使其翻面。</font>",
}
local wdtx__fire_attack = fk.CreateCard{
  name = "wdtx__fire_attack",
  skill = "wdtx__fire_attack_skill",
  type = Card.TypeTrick,
  is_damage_card = true,
}
extension_card:addCardSpec("wdtx__fire_attack",Card.Spade,2)

Fk:loadTranslationTable{
  ["wdtx__fire_attack"] = "火攻",
  ["burningSkill"] = "灼伤",
  [":burningSkill"] = "锁定技，你的回合开始时你流失X/2(向下取整)体力，然后“灼烧”标记-1，当此标记为0时失去此技能。(X为“灼烧”标记)",
  ["@up_fire"] = "灼烧+",
  ["wdtx__fire_attack_skill"] = "火攻",
  [":wdtx__fire_attack"] = "锦囊牌<br /><b>时机</b>：出牌阶段<br /><b>目标</b>：一名有手牌的角色<br /><b>效果</b>：目标角色展示一张手牌，"..
  "然后你可以弃置一张与此牌花色相同的手牌对其造成1点火焰伤害。（升级仅限问鼎天下模式）"..
  "<br /><font color='#90EE90'>等级1：无需弃牌，火攻后目标获得【灼伤】技能且获得X+1层“灼烧”标记（X为等级数）。</font>"..
  "<br /><font color='#90EE90'>等级2：继承等级1。</font>"..
  "<br /><font color='#90EE90'>等级3：继承等级1，目标邻近至多2名友方也受到此卡1点火属性伤害且其友方均获得2层“灼烧”标记</font>",
  -- ["#fire_attack-show"] = "%src 对你使用了火攻，请展示一张手牌",
  -- ["#fire_attack-discard"] = "你可弃置一张 %arg 手牌，对 %src 造成1点火属性伤害",
  ["#wdtx__fire_attack_skill"] = "选择一名有手牌的角色，令其展示一张手牌，<br />然后你可以弃置一张与此牌花色相同的手牌对其造成1点火焰伤害（升级仅限问鼎天下模式）",
}

local wdtx__supply_shortage = fk.CreateCard{
  name = "wdtx__supply_shortage",
  skill = "wdtx__supply_shortage_skill",
  type = Card.TypeTrick,
  sub_type = Card.SubtypeDelayedTrick,
}
extension_card:addCardSpec("wdtx__supply_shortage",Card.Spade,10)

Fk:loadTranslationTable{
  ["wdtx__supply_shortage"] = "兵粮寸断",
  ["weak_hurt_skill"] = "虚弱",
  [":weak_hurt_skill"] = "锁定技，每当造成共2点伤害时伤害-1，你回合结束后“虚弱”标记-1，当此标记为0时失去此技能。",
  ["@weak_hurt"] = "虚弱+",
  [":wdtx__supply_shortage"] = "延时锦囊牌<br /><b>时机</b>：出牌阶段<br /><b>目标</b>：距离1的一名其他角色"..
  "<br /><b>效果</b>：将此牌置于目标角色判定区内。其判定阶段进行判定：若结果不为♣，其跳过摸牌阶段。然后将【兵粮寸断】置入弃牌堆。（升级仅限问鼎天下模式）"..
  "<br /><font color='#90EE90'>等级1：此牌判定成功后目标角色获得【虚弱】技能并获得X+1层“虚弱”标记（X为等级数）。</font>"..
  "<br /><font color='#90EE90'>等级2：继承等级1。</font>",
  ["#wdtx__supply_shortage_skill"] = "选择距离1的一名角色，将此牌置于其判定区内。其判定阶段判定：<br />若结果不为♣，其跳过摸牌阶段（升级仅限问鼎天下模式）",
  ["wdtx__supply_shortage_skill"] = "兵粮寸断",
}

local wdtx__jiancai = fk.CreateCard{
  name = "wdtx__jiancai",
  type = Card.TypeTrick,
  skill = "wdtx__jiancai_skill",
}
extension_card:addCardSpec("wdtx__jiancai",Card.Heart,6)

Fk:loadTranslationTable{
  ["wdtx__jiancai"] = "荐才",
  ["@jiancailv"] = "品质+",
  ["wdtx__jiancai_skill"] = "荐才",
  ["#losejcSkill"] = "",
  ["#wdtx__jiancai_skill"] = "你可以从技能池里3选1获得一个技能，回合结束时失去该技能。",
  [":wdtx__jiancai"] = "锦囊牌<br /><b>时机</b>：出牌阶段<br /><b>目标</b>：自己<br /><b>效果</b>：你可以从技能池里3选1获得一个技能，回合结束时失去该技能。（升级仅限问鼎天下模式）"..
  "<br /><font color='#90EE90'>等级1：3选1改为5选2.</font>",
}


local wdtx__zhenqiao = fk.CreateCard{
  name = "wdtx__zhenqiao",
  type = Card.TypeTrick,
  skill = "wdtx__zhenqiao_skill",
}
extension_card:addCardSpec("wdtx__zhenqiao",Card.Club,6)

Fk:loadTranslationTable{
  ["wdtx__zhenqiao"] = "振鞘",
  ["@zhenqiaolv"] = "振鞘延长+",
  ["wdtx__zhenqiao_skill"] = "振鞘",
  ["#losezqSkill"] = "",
  ["#wdtx__zhenqiao_skill"] = "你获得【振鞘】技能，回合结束失去此技能。",
  [":wdtx__zhenqiao"] = "锦囊牌<br /><b>时机</b>：出牌阶段<br /><b>目标</b>：自己<br /><b>效果</b>：你获得【振鞘】技能，回合结束失去此技能。（升级仅限问鼎天下模式）"..
  "<br /><font color='#90EE90'>等级1：回合结束失去【振鞘】技能改为延长X回合后失去此技能。（X为等级数）</font>"..
  "<br /><font color='#90EE90'>等级2：继承等级1</font>",
}


local wdtx__boshi = fk.CreateCard{
  name = "wdtx__boshi",
  type = Card.TypeTrick,
  skill = "wdtx__boshi_skill",
}
extension_card:addCardSpec("wdtx__boshi",Card.Spade,6)

Fk:loadTranslationTable{
  ["wdtx__boshi"] = "博识",
  ["@@costcard"] = "消耗",
  ["@@staymax"] = "停留",
  ["wdtx__boshi_skill"] = "博识",
  ["#losezqSkill"] = "",
  ["#wdtx__boshi_skill"] = "临时升级你所有手牌。（当临时升级的卡牌进入弃卡区则移除其临时升级标记。此卡限问鼎天下模式）",
  [":wdtx__boshi"] = "锦囊牌<br /><b>时机</b>：出牌阶段<br /><b>目标</b>：自己<br /><b>效果</b>：临时升级你所有手牌。（当临时升级的卡牌进入弃卡区则移除其临时升级标记。此卡限问鼎天下模式）"..
  "<br /><font color='#90EE90'>等级1：获得”停留“标记（问鼎天下的玩家当有此标记的卡牌在手中会跳过弃牌阶段）。</font>"
}



local wdtx__crossbow = fk.CreateCard{
  name = "wdtx__crossbow",
  type = Card.TypeEquip,
  sub_type = Card.SubtypeWeapon,
  attack_range = 1,
  equip_skill = "#wdtx__crossbow_skill",
  on_install = function(self, room, player)
    room:handleAddLoseSkills(player, self.equip_skill.name, nil, false)
    if self:getMark("@slash_num") > 0 then
      room:setPlayerMark(player,"slash_num",self:getMark("@slash_num"))
    end
  end,
  on_uninstall = function(self, room, player)
    room:handleAddLoseSkills(player,"-"..self.equip_skill.name, nil, false)
    if self:getMark("@slash_num") > 0 or player:getMark("slash_num") > 0 then
      room:setPlayerMark(player,"slash_num",0)
    end
  end,
}

extension_card:addCardSpec("wdtx__crossbow",Card.Club,1)

Fk:loadTranslationTable{
  ["wdtx__crossbow"] = "破损的连弩",
  -- ["@slash_num"] = "杀数+",
  ["#wdtx__crossbow_skill"] = "诸葛连弩",
  [":wdtx__crossbow"] = "装备牌·武器<br /><b>攻击范围</b>：１<br /><b>武器技能</b>：锁定技，你于出牌阶段内使用【杀】次数+1。"..
  "<br /><font color='#90EE90'>等级1：升级后额外使用【杀】次数+2</font>"..
  "<br /><font color='#90EE90'>等级2：升级后额外使用【杀】次数+3。</font>"..
  "<br /><font color='#90EE90'>等级3：升级后额外使用【杀】次数+4。</font>",
}


local wdtx__axe = fk.CreateCard{
  name = "wdtx__axe",
  type = Card.TypeEquip,
  sub_type = Card.SubtypeWeapon,
  attack_range = 3,
  equip_skill = "#wdtx__axe_skill",

}

extension_card:addCardSpec("wdtx__axe",Card.Diamond,5)

Fk:loadTranslationTable{
  ["wdtx__axe"] = "贯石斧",
  -- ["@up_easyhurt"] = "杀数+",
  ["#wdtx__axe_skill"] = "贯石斧",
  [":wdtx__axe"] = "装备牌·武器<br /><b>攻击范围</b>：３<br /><b>武器技能</b>：当你使用的【杀】被【闪】抵消后，你可以弃置两张牌，则此【杀】继续造成伤害。"..
  "<br /><font color='#90EE90'>等级1：使用【杀】造成伤害后使其获得【易伤】技能且其额外获得X层“易伤”标记。如果发动此牌效果再额外获得1层“易伤”标记。（X为等级数）</font>"
}

local gudingBlade = fk.CreateCard{
  name = "wdtx__guding_blade",
  type = Card.TypeEquip,
  sub_type = Card.SubtypeWeapon,
  attack_range = 2,
  equip_skill = "#wdtx__guding_blade_skill",
  on_install = function(self, room, player)
    room:handleAddLoseSkills(player, self.equip_skill.name, nil, false)
    if self:getMark("@@up_pojun") > 0 then
      room:handleAddLoseSkills(player, "m_ex__pojun", nil, false)
    end
  end,
  on_uninstall = function(self, room, player)
    room:handleAddLoseSkills(player,"-"..self.equip_skill.name, nil, false)
    if self:getMark("@@up_pojun") > 0 then
      room:handleAddLoseSkills(player, "-m_ex__pojun", nil, false)
    end
  end,
}

extension_card:addCardSpec("wdtx__guding_blade",Card.Spade,1)

Fk:loadTranslationTable{
  ["wdtx__guding_blade"] = "古锭刀",
  ["@@up_pojun"] = "界破军",
  [":wdtx__guding_blade"] = "装备牌·武器<br /><b>攻击范围</b>：２<br /><b>武器技能</b>：锁定技。每当你使用【杀】对目标角色造成伤害时，若该角色没有手牌，此伤害+1。"..
  "<br /><font color='#90EE90'>等级1：装备后你获得手杀【界破军】技能</font>",
  ["#wdtx__guding_blade_skill"] = "古锭刀",
}

local wdtx__fan = fk.CreateCard{
  name = "wdtx__fan",
  type = Card.TypeEquip,
  sub_type = Card.SubtypeWeapon,
  attack_range = 4,
  equip_skill = "#wdtx__fan_skill",
}
extension_card:addCardSpec("wdtx__fan",Card.Diamond,1)

Fk:loadTranslationTable{
  ["wdtx__fan"] = "朱雀羽扇",
  [":wdtx__fan"] = "装备牌·武器<br /><b>攻击范围</b>：４<br /><b>武器技能</b>：当你声明使用普【杀】后，你可以将此【杀】改为火【杀】。"..
  "<br /><font color='#90EE90'>等级1：使用普【杀】指向目标使其获得【灼伤】技能且其获得两层”灼烧“标记。</font>",
  ["#wdtx__fan_skill"] = "朱雀羽扇",
}

local wdtx__qingGang = fk.CreateCard{
  name = "wdtx__qinggang_sword",
  type = Card.TypeEquip,
  sub_type = Card.SubtypeWeapon,
  attack_range = 2,
  equip_skill = "#wdtx__qinggang_sword_skill",
}
extension_card:addCardSpec("wdtx__qinggang_sword",Card.Spade,1)

Fk:loadTranslationTable{
  ["wdtx__qinggang_sword"] = "青釭剑",
  ["@@up_fengren"] = "锋刃",
  [":wdtx__qinggang_sword"] = "装备牌·武器<br /><b>攻击范围</b>：２<br /><b>武器技能</b>：锁定技，你的【杀】无视目标角色的防具。"..
  "<br /><font color='#90EE90'>等级1：弃置目标一张装备。【杀】指向目标不可被其响应。</font>",
  ["#wdtx__qinggang_sword_skill"] = "青釭剑",

  ["wdtx__chitu"] = "赤兔",
  [":wdtx__chitu"] = "装备牌·坐骑<br /><b>坐骑技能</b>：你与其他角色的距离-1。",
}

local wdtx__chitu = fk.CreateCard{
  name = "wdtx__chitu",
  type = Card.TypeEquip,
  sub_type = Card.SubtypeOffensiveRide,
  equip_skill = "#wdtx__chitu_skill",
}
extension_card:addCardSpec("wdtx__chitu",Card.Heart, 5)

extension_card:loadCardSkels{
  defShield,
  wdtx__jiancai,
  wdtx__zhenqiao,
  wdtx__boshi,

  wdtx_Slash,wdtx_thunderSlash,wdtx_fireSlash,
  wdtx__jink,
  wdtx__peach,
  wdtx__analeptic,

  wdtx__dismantlement,
  wdtx__snatch,
  wdtx__duel,
  wdtx__ex_nihilo,
  wdtx__nullification,
  wdtx__savage_assault,
  wdtx__archery_attack,
  wdtx__lightning,
  wdtx__indulgence,
  wdtx__ironChain,
  wdtx__fire_attack,
  wdtx__supply_shortage,

  wdtx__crossbow,
  wdtx__axe,
  gudingBlade,
  wdtx__fan,
  wdtx__qingGang,
  wdtx__chitu,
}

return extension_card